    <div id="nav">
        <ul>
            <li><?php echo link_to('Naslovnica', 'homepage') ?></li>
            <?php foreach($links as $link): ?>
            <li><?php echo link_to($link['title'], 'static_page', array('slug'=>$link['slug'])) ?></li>
            <? endforeach ?>
        </ul>
    </div>